﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace FileManager
{
    class Snap
    {
        public string GetSnapFileName(string path)
        {
            string dir = path + string.Format("{0}\\{1:D2}\\{2:D2}\\", DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
            if (!Directory.Exists(dir))
                Directory.CreateDirectory(dir);
            string fileName = dir + DateTime.Now.ToString("HH-mm-ss");
            return fileName;
        }

    }
}
